package com.javabasestage2.fzr1.Xunhuan;

public class Continue {
    public static void main(String[] args) {
        int i = 1;
        while ( i <= 4){
            i++;
            if(i == 2){
                continue;
                //输出3,4,5.当i=1时，它通过i++赋值为2了再执行continue返回（i <=4）然后为3输出，再3判断输出4.再4判断输出5.
            }
            System.out.println("i=" + i);
        }

    }
}
